<blockquote>
    <p>${name} <code>GET ${r'${host}'}/user/find</code></p>
    <footer>${cls}</footer>
</blockquote>
<#if desc??>
<div class="panel panel-default">
    <div class="panel-body">
        <b>功能描述</b>：${desc}
    </div>
</div>
</#if>
<blockquote>
    <p>Headers:</p>
    <div style="font-size:13px;">
        <#list headers as h>
            <#list h?keys as key>
                <p>${key}: ${h[key]!("")}</p>
            </#list>
        </#list>
    </div>
</blockquote>


<h4>接口参数</h4>
<table class="table table-bordered table-hover">
    <thead>
    <tr>
        <th style="width:150px;">参数名称</th>
        <th style="width:150px;">类型</th>
        <th style="width:60px;text-align:center;">必须</th>
        <th>参数说明</th>
        <th>错误提示</th>
    </tr>
    </thead>
    <tbody>
    <#list requestParams as requestParam>
        <tr>
            <td>${requestParam.name!''}</td>
            <td>${requestParam.type!''}</td>
            <td style="text-align:center;">${requestParam.notNull?string("<span style='color:red;'>是</span>","否")}</td>
            <td>${requestParam.remarks}</td>
            <td>${requestParam.errorMsg}</td>
        </tr>
    </#list>
    </tbody>
</table>
<h4>请求示例 <code>application/json</code></h4>
<pre id="request-json-renderer">
${requestStr!''}
</pre>
<h4>返回结果</h4>
<table class="table table-bordered table-hover">
    <thead>
    <tr>
        <th style="width:150px;">返回对象</th>
        <th style="width:150px;">类型</th>
        <th>说明</th>
    </tr>
    </thead>
    <tbody>
    <#list responseParams as responseParam>
    <tr>
        <td>${responseParam.name!''}</td>
        <td>${responseParam.type!''}</td>
        <td>${responseParam.remarks!''}</td>
    </tr>
    </#list>
    </tbody>
</table>

<h4>输出示例 <code>application/json</code></h4>
<pre id="response-json-renderer">${responseStr!''}</pre>
<script type="text/javascript" src="/js/jquery.json-viewer.js"></script>
<script type="text/javascript">
    $(function(){
        var res = JSON.parse($('#response-json-renderer').text());
        $('#response-json-renderer').jsonViewer(res, {collapsed: false, withQuotes: false});

        var res1 = JSON.parse($('#request-json-renderer').text());
        $('#request-json-renderer').jsonViewer(res1, {collapsed: false, withQuotes: false});
    });
</script>